<link rel="stylesheet" href="<?= $this->baseUrl() ?>/css/backend.user.index.css" />
<script type="text/javascript" src="<?=$this->baseUrl()?>/js/backend.delete.js"></script>
<?php if(count($this->users)>0): ?>
<div id="view-content">
    <div id="table-header">
        <div class="name">Name</div>
        <div class="email">Email</div>
        <div class="ic">IC Number</div>
        <div class="gender">M/F</div>
        <div class="phone">Phone</div>
        <div class="company">Company</div>
        <div class="act">Action</div>
    </div>
    <div id="table-content">
        <?php foreach ($this->users as $user): ?>
            <div class="table-row">
                <div class="name"><?= $user['full_name'] ?></div>
                <div class="email"><?= $user['email'] ?></div>
                <div class="ic"><?= $user['ic_number'] ?></div>
                <div class="gender"><?= $user['gender'] ?></div>
                <div class="phone"><?= $user['phone'] ?></div>
                <div class="company"><?= $user['company'] ?></div>
                <div class="act">
                    <a class="nyroModal" href="<?=$this->baseUrl()?>/backend/user/edit/id/<?=$user['user_id']?>"><img src="<?= $this->baseUrl() ?>/images/icons/pencil.png" alt="edit" /></a>
                    <a class="link-delete" href="#delete" aid="<?=$user['user_id']?>"><img src="<?= $this->baseUrl() ?>/images/icons/cross.png" alt="delete" /></a>
                </div>
            </div>
        <?php endforeach; ?>
    </div> <!-- end of table-content -->
    <div id="hiddenform">
        <form name="frmAct" id="frmAct" action="" method="post">
            <?=$this->formHidden("id","")?>
            <?=$this->formHidden("act","")?>
        </form>
    </div>
</div>
<?php else: ?>
<div style="margin-top: 20px;"><i>No record found</i></div>
<?php endif; ?>